/*
 * @ : Copyright (c) 2021 Phytium Information Technology, Inc.
 *
 * SPDX-License-Identifier: Apache-2.0.
 *
 * @Date: 2021-04-27 15:31:44
 * @LastEditTime: 2021-07-28 17:30:20
 * @Description:  Description of file
 * @Modify History:
 * * * Ver   Who        Date         Changes
 * * ----- ------     --------    --------------------------------------
 */

#include "ft_can.h"
#include "parameters.h"

FCanConfig fcan_config[FT_CAN_NUM] =
    {
        {
            .instanceid = FT_CAN0_INSTANCE_ID, /* Id of device */
            .base_address = FT_CAN0_BASEADDR,  /* Can base Address */
            .irq_num = FT_CAN0_IRQNUM,
            .baudrate = 250000,
            .txfifo_deepth = 16,
        },
#ifdef FT_CAN1_INSTANCE_ID
        {
            .instanceid = FT_CAN1_INSTANCE_ID, /* Id of device */
            .base_address = FT_CAN1_BASEADDR,  /* Can base Address */
            .irq_num = FT_CAN1_IRQNUM,
            .baudrate = 250000,
            .txfifo_deepth = 16,
        },
#endif // DEBUG
#ifdef FT_CAN2_INSTANCE_ID
        {
            .instanceid = 2,                  /* Id of device */
            .base_address = FT_CAN2_BASEADDR, /* Can base Address */
            .irq_num = FT_CAN2_IRQNUM,
            .baudrate = 250000,
            .txfifo_deepth = 16,
        }
#endif //
};
